\documentclass[b5paper,9pt,twoside,openany]{book}
\input{setting}
\begin{document}
\frontmatter
\setcounter{tocdepth}{3}
\tableofcontents

\mainmatter
\include{pen}
\end{document}
